'''
用户管理模块的接口
'''


def register(url,base_requests,cs):
    '''
    注册接口
    :param url: 环境数据  http://192.168.0.103:8088/
    :param base_requests: BaseRequests的实例
    :param cs: 注册的参数
    :return: 响应
    '''

    url= url+"/futureloan/mvc/api/member/register"
    r = base_requests.post(url,data=cs)
    return r

def login(url,base_requests,cs):#登录
    url = url+ "/futureloan/mvc/api/member/login"
    r = base_requests.post(url,data=cs)
    return r

def list(url,base_requests):#获用户列表
    url = url + "/futureloan/mvc/api/member/list"
    r = base_requests.get(url)
    return r

def recharge(url,base_requests): # 充值
    url = url + "/futureloan/mvc/api/member/member/recharge"
    r = base_requests.post(url)
    return r


